package cs;

public class MeetingRoom {
    private String name; // 会议室名称
    private int capacity; // 容纳人数
    private boolean hasMedia; // 是否配备多媒体设备

    public MeetingRoom(String name, int capacity, boolean hasMedia) {
        this.name = name;
        this.capacity = capacity;
        this.hasMedia = hasMedia;
    }

    public String getName() {
        return name;
    }

    public int getCapacity() {
        return capacity;
    }

    public boolean hasMedia() {
        return hasMedia;
    }

    @Override
    public String toString() {
        return String.format("%-10s %-10d %s", name, capacity, hasMedia ? "有" : "无");
    }
}

